package com.vilinno.tlias.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 分页查询结果，两个字段对应两条SQL语句
 * @param <T>
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageResult<T> {
    //total指记录总数
    private Long total;
    //rows指查询结果
    private List<T> rows;
}
